﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucCruises.ascx.cs" Inherits="Indochinaodyssey.UserControl.Other.ucCruises" %>

<style type="text/css">
<!--
#slideCont {
 	border:solid 0px #000;
	 text-align:center;
}

#slideCont img {
 	margin: 5px;
}
-->
</style>
<script type="text/javascript">
<!--
/* 
  -----------------------------------------------
   Streaming banners - v.1
   (c) 2006 www.haan.net
   You may use this script but please leave the credits on top intact.
   Please inform us of any improvements made.
   When usefull we will add your credits.
  ------------------------------------------------ */
<!--

function clip() {
 	// width of the banner container
 	var contWidth = 570;
 	// height of the banner container
 	var contHeight = 76;

 	var id1 = document.getElementById('slideA');
 	var id2 = document.getElementById('slideB');

 	id1.style.left = parseInt(id1.style.left)-1 + 'px';
 	
 	document.getElementById('slideCont').style.width = contWidth + "px";
 	document.getElementById('slideCont').style.clip = 'rect(auto,'+ contWidth +'px,' + contHeight +'px,auto)';
 	id2.style.display = '';
 	if(parseFloat(id1.style.left) == -(contWidth)) 	{
 		id1.style.left = '0px';
 	}
 	setTimeout(clip,30)
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  clip();
});
//-->
</script>

<div id="slideCont" style="overflow: hidden; position: relative; z-index: 1; width: 570px; height: 76px; top: 0px; clip: rect(auto, 425px, 90px, auto);">
	<div id="slideA" style="overflow: hidden; position: absolute; z-index: 1; top: 0px; left: -150px; width: 1140px; height: 76px;">
		<div style="float: left;" id="innerSlideA">
        <%
            IOBusiness.clsBSHinhAnh hinh = new IOBusiness.clsBSHinhAnh();
            List<IOEntity.clsHinhAnh> l = new List<IOEntity.clsHinhAnh>();
            l = hinh.GetByLoai(3);
            foreach (IOEntity.clsHinhAnh item in l)
            {
            
             %>
    
			<a href="http://www.halongsagatravel.com/"><img src='/Images/HinhAnh/<%=item.Url %>' border="0" height="76" width="110"></a>
			
            <%} %>
            
		</div>
		<div id="slideB" style="overflow: hidden; position: relative; z-index: 1; top: 0px; left: 0px; width: 250px; height: 90px;">
			<%
             foreach (IOEntity.clsHinhAnh item in l)
            {
            
             %>
    
			<a href="http://www.halongsagatravel.com/"><img src='/Images/HinhAnh/<%=item.Url %>' border="0" height="76" width="110"></a>
			
            <%} %>
            
		</div>
	</div>
</div>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="GetByLoai" TypeName="IOBusiness.clsBSHinhAnh">
    <SelectParameters>
        <asp:Parameter DefaultValue="3" Name="loai" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

